import { request } from '@/utils/request'

// 计划通道数据
export const getPlanAPI = object => request('admin/channel/channel/selectPage', 'post', { data: object })

// 获取类型
export const getTypeAPI = object => request('admin/trade/repayment/indexDict', 'post', { data: object })

// 获取代还时间列表
export const getTimeListAPI = object => request('admin/trade/repayment/index', 'post', { data: object })

// 获取计划详情
export const getPlanInfoAPI = id => request('admin/trade/repayment/detail', 'get', { params: id })

// 启动失败计划
export const startLoserAPI = id => request('admin/trade/repayment/startFail', 'post', { data: id })

// 切换通道
export const changeChannlAPI = object => request('admin/trade/repayment/switchChannel', 'post', { data: object })

// 批量修改
export const batchEditAPI = object => request('admin/trade/repayment/batchEdit', 'post', { data: object })

// 启动
export const startAPI = id => request('admin/trade/repayment/start', 'post', { data: id })

// 取消
export const cancelAPI = id => request('admin/trade/repayment/cancel', 'post', { data: id })

// 获取状态信息
export const getStatusInfoAPI = object => request('admin/trade/repayment/getPlanListByDate', 'post', { data: object })

// 修改备注信息
export const editRemarkAPI = object => request('admin/trade/RepaymentPlan/edit', 'post', { data: object })

// 删除
export const delInfoAPI = id => request('admin/trade/repayment/delPlan', 'post', { data: id })

// 获取每日计划待处理信息
export const getInfoListAPI = object => request('admin/trade/RepaymentDailyProcess/index', 'post', { data: object })

// 提交处理意见
export const uploadMsgAPI = object =>
  request('admin/trade/RepaymentDailyProcess/singleHandle', 'post', { data: object })

// 处理操作
export const handlerAPI = object => request('admin/trade/RepaymentDailyProcess/singleHandle', 'post', { data: object })

// 标记
export const signAPI = object => request('admin/trade/repayment/mark', 'post', { data: object })

// 获取计划状态
export const getPlanStatus = () => request('admin/trade/repaymentUneven/indexSelectPage', 'post')

// 获取小计划消还不平帐
export const getTradeInfoListAPI = object => request('admin/trade/repaymentUneven/index', 'post', { data: object })

// 处理平账
export const handlerSignAPI = id => request('admin/trade/repaymentUneven/handle', 'post', { data: id })

// 银行交易量统计
export const getBankListAPI = object => request('admin/statistics/repayment/bank', 'post', { data: object })

export const getChannelListAPI = object => request('admin/trade/ExpressCollection/index', 'post', { data: object })

export const editPlanInfoAPI = object => request('admin/trade/repayment/editPlanInfo', 'post', { data: object })
export const buildPlanItemAPI = object => request('admin/trade/repayment/buildPlanItem', 'post', { data: object })
export const addPlanAPI = object => request('admin/trade/repayment/addPlan', 'post', { data: object })

// 执行
export const executeAPI = id => request('callback/channel/huichao/shoudong', 'get', { params: id })
// 退款
export const refundAPI = id => request('admin/trade/repayment/refund', 'post', { data: id })

export const getMoneyAPI = id => request('admin/trade/repayment/planMerBalance', 'post', { data: id })

export const getViewMoneyAPI = id => request('callback/channel/chaofu/queryBalance', 'post', { data: id })

export const batchSendMessageAPI = id => request('admin/trade/RepaymentDailyProcess/resendSms', 'post', { data: id })

export const getUserNotifyAPI = data => request('/admin/user/Notify/index', 'post', { data: data })

export const addUserNotifyAPI = data => request('/admin/user/Notify/store', 'post', { data: data })
export const deletInfoAPI = id => request('/admin/user/Notify/delete', 'post', { data: id })

// 回款
export const huiKuanAPI = id => request('callback/channel/shanfu/huikuan', 'post', { data: id })

// 查询
export const queryMoneuAPI = data => request('/callback/channel/shanfu/queryOrder', 'post', { data: data })
